﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeoRef.Exceptions
{
    /// <summary>
    /// Encapsulates a geocoding exception. 
    /// </summary>
    public class GeoCodingException: System.Exception
    {
        /// <summary>
        /// The error message for this geocoding exception.
        /// </summary>
        public string ErrorMessage
        {
            get
            {
                return base.Message.ToString();
            }
        }

        /// <summary>
        /// Constructs a GeoCodingException object with an error message.
        /// </summary>
        /// <param name="geoCodingError">Error message.</param>
        public GeoCodingException(string geoCodingError)
            : base(geoCodingError)
        {

        }

        /// <summary>
        /// Constructs a GeoCodingException object with an error message and an inner exception.
        /// </summary>
        /// <param name="geoCodingError">Error message.</param>
        /// <param name="innerExc">Inner exception object.</param>
        public GeoCodingException(string geoCodingError, Exception innerExc)
            :base(geoCodingError, innerExc)
        {

        }
    }
}
